﻿@model KnowledgeCommunity.Web.Models.Page
@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout_zone.cshtml";
}

<div class="contentcontainer">
    <div class="headings">
        <h2>Slider查询</h2>
    </div>
    <div class="contentbox">
        @using (Html.BeginForm("Search", "Slider", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            <table width="100%" border="0" id="MyTable" cellpadding="0" cellspacing="0">
            <tbody>
            <tr>
                <th>标题</th>
                <td>
                    <input type="text" id="s_title" name="s_title"/>
                </td>
                <th>内容</th>
                <td>
                    <input type="text" id="s_cont" name="s_cont"/>
                </td>
            </tr>
            <tr>
                <th>起始时间</th>
                <td>
                    <input type="text" id="s_time" name="s_time"/>
                </td>
                <th>结束时间</th>
                <td>
                    <input type="text" id="e_time" name="e_time" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td>
                    <input type="submit" value=" 查询 >> " class="btn" />
                </td>
            </tr>  
            </tbody>
            </table>
        }
        <div style="clear: both;"></div>
    </div>
</div>
@using (Html.BeginForm("PageIndex", "Slider", FormMethod.Post))
{ 
<div class="contentcontainer">
    <div class="headings">
        <h2>Slider列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th>标题</th>
                    <th>创建时间</th>
                    <th>管理</th>
                    <th><input name="" type="checkbox" value="" id="checkboxall" /></th>
                </tr>
            </thead>
            <tbody>

            @foreach (var item in Model.SliderList)
            {
            <tr>
                <td>
                    <a href="@Url.Action("Details", "Slider", new { id = item.Id })" title="">
                     @item.Title 
                     </a>
                </td>
                <td>
                    @item.AddTime
                </td>
                <td>
                    <a href="@Url.Action("Edit", "Slider", new { id = item.Id })" title=""><img src="@Url.Content("~/Content/img/icons/icon_edit.png")" alt="Edit" /></a>
                    <a href="@Url.Action("Details", "Slider", new { id = item.Id })" title=""><img src="@Url.Content("~/Content/img/icons/icon_approve.png")" alt="Details" /></a>
                    <a href="@Url.Action("Delete", "Slider", new { id = item.Id })" title=""><img src="@Url.Content("~/Content/img/icons/icon_delete.png")" alt="Delete" /></a>
                </td>
                <td>
                    <input type="checkbox" id="CheckId" value="@item.Id" />
                </td>
            </tr>
            }
            </tbody>
        </table> 
        <center class="pagination">@Html.Partial("~/Views/Shared/_PageIndex.cshtml", Model)</center> 
        <div style="clear: both;"></div>
    </div>
</div>
}